package com.ys.erp.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lwj
 * @date 2024/9/4
 */

public class UrlEnum {

    @AllArgsConstructor
    @Getter
    public enum Enums {

        DINGDING_GET_USER_DETAIL("https://oapi.dingtalk.com/topapi/v2/user/get");

        private final String url;

    }

    public static final Map<String, String> ENUM_MAP = new HashMap<>();

    static {
        ENUM_MAP.put(Enums.DINGDING_GET_USER_DETAIL.getUrl(), "获取钉钉用户详情");
    }

    public static boolean isContainsKey(String url) {
        return ENUM_MAP.containsKey(url);
    }

}
